#ubuntu的内核源码树，如果要编译在ubuntu中安装的模块就打开这2个
# KERN_VER = $(shell uname -r)
# KERN_DIR = /lib/modules/$(KERN_VER)/build	

		
# 开发板的linux内核的源码树目录
KERN_DIR = /root/driver/kernel

# obj-m	+= module_test_new_api.o
# obj-m	+= test_new_api.o
# obj-m	+= leds-s5pv210_3.o
obj-m	+= platform_leds_x210_4.o

all:
	make -C $(KERN_DIR) M=`pwd` modules 
#	gcc app.c -o app.o
       	#arm-none-linux-gnueabi-gcc app.c -o app.o


cp:
	cp *.ko /root/s5pv210/driver_test
#	cp app.o /root/s5pv210/driver_test

.PHONY: clean	
clean:
	make -C $(KERN_DIR) M=`pwd` modules clean
	rm -rf app.o

